public class Main {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        int[] array={1,4,2,7};
        for(int i=0;i<array.length;i++){
            binarySearchTree.insert(array[i]);
        }
        System.out.println(binarySearchTree.search(4));
        System.out.println(binarySearchTree.search(11));
    }
}